package my.maven.project;

public class BigData extends Thread {

	private int begin;
	private int end;
	
	public BigData(int b,int e)
	{
		this.begin = b;
		this.end = e;
	}
	
	@Override
	public void run() { 
		synchronized (this.getClass()) { 
			System.out.println("begin:"+begin+" end:"+ end);
			for (int j = begin; j < end ; j++) {
				String item = BigDataTest.orderlist.get(j); 
			
				if(!BigDataTest.orderset.remove(item))
				{
//				   System.out.println("orderset contains "+ item + BigDataTest.orderset.contains(item));
				   BigDataTest.orderNoset.add(item);
//				   System.out.println("orderset contains "+ item );
//				   BigDataTest.orderset.remove(item);
				} 
			} 
		}
		BigDataTest.counter2.countDown();
	}
 
	
}
